import { createApp } from 'vue';
import Antd from 'ant-design-vue';
import App from './App.vue'
import router from './router'
import 'ant-design-vue/dist/antd.css';
import '@/style/index.scss'
import myIcon from "@/components/myIcon/myIcon.vue"
// import "windi.css";
import * as Icons from "@ant-design/icons-vue";
// 全局方法
import globalFun from './common/globalFun'
import store from './store'
// import {carryOutOutlined,tagOutlined,userOutlined,plusCircleOutlined} from "@ant-design/icons-vue";
import Carousel from "@/components/carousel/index.vue";
import List from "@/components/list/index.vue";
import Divider from "@/components/divider/index.vue";


// 以下为bpmn工作流绘图工具的样式
import 'bpmn-js/dist/assets/diagram-js.css' // 左边工具栏以及编辑节点的样式
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css'
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css'
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css'
import 'bpmn-js-properties-panel/dist/assets/bpmn-js-properties-panel.css' // 右边工具栏样式

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'//这句是暗黑模式切换

import BaiduMap from 'vue-baidu-map-3x'


const app = createApp(App)
// 屏蔽警告信息
app.config.warnHandler = () => null;
for(const i in Icons){
    app.component(i,Icons[i]);
}
app.config.globalProperties.$globalFun= globalFun

app.use(router)
    .use(Antd)
    .use(store)
    .use(ElementPlus)
    .use(BaiduMap, {
        ak: 'AvylNyOwJLfDaCZGqSK36pSAjyLIxFl6',
    })
    .component("myIcon",myIcon)
    .component("Carousel",Carousel)
    .component("List",List)
    .component("Divider",Divider)
    .mount("#app");